<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../lib/vue-2.4.0.js"></script>
  <style>
    [v-clock] {
      display: none;
    }
  </style>
</head>
<body>
  <div id="app">
    <h2>Hello {{name}}</h2>
    <h2>{{firstName}} {{lastName}}</h2>
    <h2>{{count*2}}</h2>
    <h2 v-once>{{firstName}} {{lastName}}</h2>
    <h2>{{htmlData}}</h2>
    <h2 v-html="htmlData"></h2>
    <h2 v-text="name">Hello </h2>
    <h2 v-pre>{{firstName}} {{lastName}}</h2>
    <h2 v-clock>{{firstName}} {{lastName}}</h2>
  </div>
</body>
<script>
  let app = new Vue({
    el: '#app',
    data: {
      name: 'Vue',
      firstName: '张',
      lastName: '狗子',
      count: 10,
      htmlData: '<p style="color: red;">我是html代码</p>'
    }
  })
</script>
</html>